package com.scpcfe.www.controller;

import com.scpcfe.www.bean.Person;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;

@RestController
public class JsonDemoTwo {
    @GetMapping("/json_v2")
    public List <Person> enter() {
        List list1 = new ArrayList();
        Person person = new Person();
        person.name = "aT";
        person.age = 19;
        person.weight = 57.1f;
        list1.add(person);

        person = new Person();
        person.name = "aY";
        person.age = 21;
        person.weight = 70.2f;
        list1.add(person);

        return list1;
    }
}
